li(id="msd-dropdown" class="right feature-disabled")
	a(class="menu-button" href="#")
		+navbar_led("msd-led", "led-msd")
		span(i18n="kvm_text60") Drive
	div(id="msd-menu" class="menu")
		div(class="text")
			b(i18n="kvm_text61") Mass Storage Drive: 
			span(id="msd-status")
			br
		hr
		div(id="msd-message-offline" class="hidden")
			+menu_message("warning", "Mass Storage Drive is offline", "msd-message-offline")
			hr
		div(id="msd-message-image-broken" class="hidden")
			+menu_message("warning", "Current image is broken!", "msd-message-image-broken")
				| Perhaps uploading was interrupted#[br]
			hr
		div(id="msd-message-too-big-for-dvd" class="hidden")
			+menu_message("warning", "Current image is too big for DVD!", "msd-message-too-big-for-dvd")
				| The maximum is 31.6GiB. Please switch to the Flash mode.
			hr
		div(id="msd-message-out-of-storage" class="hidden")
			+menu_message("warning", "Current image is out of storage", "msd-message-out-of-storage")
				| This image was connected manually using #[b kvmd-otgmsd]
			hr
		div(id="msd-message-rw-enabled" class="hidden")
			+menu_message("warning", "Read-write mode is enabled", "msd-message-rw-enabled")
				| Do not turn off PiKVM while this is active to prevent#[br]
				| filesystem corruption. Use read-only mode where possible,#[br]
				| as writing to SD card often can reduce its lifespan.
			hr
		div(id="msd-message-downloads" class="hidden")
			+menu_message("info", "The image is being downloaded from PiKVM", "msd-message-downloads")
				| Please wait
			hr
		table(class="kv")
			tr
				td(i18n="kvm_text62") Image:
				td(width="100%") #[select(disabled id="msd-image-selector")]
				td #[button(disabled id="msd-download-button" title="Download image") #[b &nbsp;&nbsp;&#x21E9;&nbsp;&nbsp;]]
				td #[button(disabled id="msd-remove-button" title="Remove image") #[b &nbsp;&nbsp;&times;&nbsp;&nbsp;]]
		table(class="kv")
			tr
				td(i18n="kvm_text63") Drive #[a(target="_blank" href="https://docs.pikvm.org/msd") mode]:
				td
					div(class="radio-box")
						input(checked type="radio" id="msd-mode-radio-cdrom" name="msd-mode-radio" value="1")
						label(for="msd-mode-radio-cdrom") CD/DVD
						input(type="radio" id="msd-mode-radio-flash" name="msd-mode-radio" value="0")
						label(for="msd-mode-radio-flash") Flash
				td &nbsp;
				+menu_switch_notable("msd-rw-switch", "Writable", false, false, "msd-rw-switch")
			tr
				td(i18n="kvm_text84") 文件内容：
				td
					div(class="radio-box")
						input(checked type="radio" id="msd-mode-radio-image" name="file-mode-radio" value="1")
						label(for="msd-mode-radio-image" i18n="kvm_text90") ImageFiles
						input(type="radio" id="msd-mode-radio-file" name="file-mode-radio" value="0")
						label(for="msd-mode-radio-file" i18n="kvm_text91") NormalFiles
		div(id="msd-storages")
		hr
		div(class="buttons buttons-row")
			button(disabled id="msd-select-new-button" class="row50" i18n="kvm_text64") Select image to upload
			button(disabled id="msd-upload-new-button" class="row25" i18n="kvm_text65") Upload
			button(disabled id="msd-abort-new-button" class="row25" i18n="kvm_text66") Abort
		div(id="msd-message-another-user-uploads" class="hidden")
			hr
			+menu_message("info", "Another user uploads an image", "msd-message-another-user-uploads")
		div(id="msd-new-sub" class="hidden")
			hr
			table(class="kv")
				tr
					td(i18n="kvm_text68") Specify a local file:
					td #[input(type="file" id="msd-new-file")]
				tr
					td(i18n="kvm_text69") #[b Or] paste a URL:
					td #[input(type="text" id="msd-new-url" style="width: 100%")]
				tr(id="msd-new-part" class="hidden")
					td(i18n="kvm_text70") Upload partition:
					td(width="100%") #[select(id="msd-new-part-selector")]
		div(id="msd-uploading-sub" class="hidden")
			hr
			table(class="kv")
				tr
					td(i18n="kvm_text74") New image:
					td(id="msd-uploading-name" class="value")
				tr
					td(i18n="kvm_text75") Upload size:
					td(id="msd-uploading-size" class="value")
			div(class="text")
				div(id="msd-uploading-progress" class="progress")
					span(id="msd-uploading-progress-value" class="progress-value")
		div(id="msd-new-tips" class="hidden")
			hr
			table(class="kv")
				tr
					td(class="value" i18n="kvm_text71") Note:
					td(i18n="kvm_text72") &bull; Don't close the browser page until the upload is complete.
				tr
					td
					td(i18n="kvm_text73") &bull; To speed up the upload, close the stream window.
		hr
		div(class="buttons buttons-row")
			button(disabled id="msd-connect-button" class="row50" i18n="kvm_text76") Connect drive to Server
			button(disabled id="msd-disconnect-button" class="row25" i18n="kvm_text77") Disconnect
			button(disabled id="msd-reset-button" class="row25" i18n="kvm_text78") Reset



		hr
		div(class="text")
			b(i18n="kvm_text85") Quick file transfer:
			br
			sub(i18n="kvm_text86") &bull; Select NormalFiles tab to upload, package them and mount image
			br
			sub(i18n="kvm_text87") &bull; Disconnect MSD, unpackage it, select tab to download
			br
		hr
		div(class="buttons buttons-row")
			button(id="msd-file-image-update-button" class="row50" i18n="kvm_text88") Package files into image
			button(id="msd-file-image-unzip-button" class="row50" i18n="kvm_text89") Unpackage files from image
		hr
		